home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Hot Mix 17
/
Hot Mix 17.iso
/
HM17_SGI
/
research
/
lib
/
obsolete
/
f_test1.pro
< prev
next >
Wrap
Text File
|
1997-07-08
|
730b
|
36 lines
; $Id: f_test1.pro,v 1.2 1997/01/15 04:02:19 ali Exp $
;
; Copyright (c) 1991-1997, Research Systems Inc. All rights
; reserved. Unauthorized reproduction prohibited.
function f_test1 , X,DFN,DFD
;+
; NAME:
; F_TEST1
;
; PURPOSE:
; F_test1 returns the probabilty of an observed value greater than X
; from an F distribution with DFN and DFD numerator and denominator
; degrees of freedom.
;
; CATEGORY:
; Statistics.
;
; CALLING SEQUENCE:
; Result = F_TEST1(X, DFN, DFD)
;
; INPUT:
; X: cutoff
;
; DFN: numerator degrees of freedom
;
; DFD: denominator degrees of freedom
;
; OUTPUT:
; The probability of a value greater than X.
;-
if X le 0 THEN return,1
return, 1 - betai( DFD/(DFD+DFN*X),DFD/2.0,DFN/2.0)
END